package org.qufenqi.api.common;


import lombok.Getter;

//配置状态码
@Getter
public enum ResponseCode {

    SUCCESS(0,"SUCCESS"),//成功
    ERROR(1,"ERROR"),//失败(资源没有成功发送)
    ILLEGAL_DATE(2,"请正确填写信息"),//表单内容错误
    NEED_LOGIN(3,"请先进行登录");//用户未登录

    private final int code;//状态码和对应描述
    private final String decription;


    ResponseCode(int code,String decription){
        this.code = code;
        this.decription = decription;
    }

}
